package avicit.bdp.dgs.qa.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2023-10-26
 * @类说明：FCTemplateDTO
 * @修改记录：
 * @注意事项：文件校验-试飞工程值数据校验使用
 * @主要功能：文件采集-文件模板
 */
@Entity
public class FCTemplateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 模板名称
     */
    @ApiModelProperty(value = "模板名称", name = "name")
    private String name;

    /**
     * 模板代码
     */
    @ApiModelProperty(value = "模板代码", name = "code")
    private String code;

    /**
     * 模板类型
     */
    @ApiModelProperty(value = "模板类型", name = "type")
    private Integer type;

    /**
     * 模板状态
     */
    @ApiModelProperty(value = "模板状态", name = "status")
    private Integer status;

    /**
     * 指定数据开始行or指定数据位置
     */
    @ApiModelProperty(value = "指定数据开始行or指定数据位置", name = "startLine")
    private String startLine;

    /**
     * 指定sheet页
     */
    @ApiModelProperty(value = "指定sheet页", name = "sheetTab")
    private Integer sheetTab;

    /**
     * 分隔符
     */
    @ApiModelProperty(value = "分隔符", name = "fileSeparator")
    private String fileSeparator;

    /**
     * 模板字段List
     */
    @Transient
    @ApiModelProperty(value = "模板字段List", name = "fieldList")
    private List<FCTemplateFieldDTO> fieldList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStartLine() {
        return startLine;
    }

    public void setStartLine(String startLine) {
        this.startLine = startLine;
    }

    public Integer getSheetTab() {
        return sheetTab;
    }

    public void setSheetTab(Integer sheetTab) {
        this.sheetTab = sheetTab;
    }

    public String getFileSeparator() {
        return fileSeparator;
    }

    public void setFileSeparator(String fileSeparator) {
        this.fileSeparator = fileSeparator;
    }

    public List<FCTemplateFieldDTO> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<FCTemplateFieldDTO> fieldList) {
        this.fieldList = fieldList;
    }
}
